﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataTransferObject
{
    public class Student
    {
        private int _id;       
        private string _name;
        private string _studentCode;
        private string _className;
        private string _sex;

        public Student(string name, string studentCode, string className, string sex):
            this(-1, name, studentCode, className, sex)
        {
        }


        public Student(int id,string name, string studentCode, string className, string sex)
        {
            this._id = id;
            this._name = name;
            this._studentCode = studentCode;
            this._className = className;
            this._sex = sex;
        }

        public int Id
        {
            get { return _id; }         
        }
        

        public string Name
        {
            get { return _name; }            
        }        

        public string StudentCode
        {
            get { return _studentCode; }            
        }        

        public string ClassName
        {
            get { return _className; }            
        }

        public string Sex
        {
            get { return _sex; }
        }
    }
}
